/*
 * Copyright (C) 2003, Velocityme Partnership
 * FileAttachmentValueToString.java
 *
 * Created on 15 December 2004, 09:22
 */

package com.velocityme.valueobjects;

import java.io.File;

/**
 *
 * @author  Robert
 */
public class FileAttachmentValueToString extends FileAttachmentValue {
    
    /** Creates a new instance of FileAttachmentValueToString */
    public FileAttachmentValueToString(FileAttachmentValue p_value) {
        super(p_value);
    }
    
    static public java.lang.String toString(FileAttachmentValue p_value) {
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append(File.separatorChar);
        stringBuffer.append("dir");
        stringBuffer.append(Integer.toString(p_value.getFileAttachmentId().intValue() / 100));
        stringBuffer.append(File.separatorChar);
        stringBuffer.append(p_value.getServerName());
        return stringBuffer.toString();
    }
    
}
